package com.adcc.ags.gms.gw.service;

import com.adcc.ags.gms.gw.vo.GWLogVO;
import com.github.pagehelper.PageInfo;
import com.google.common.base.Optional;

import java.util.List;


/**
 * Created by xuechao on 2016/9/8.
 */
public interface GMSLogService {

    /**
     * 按条件查询日志
     * @param queryOperateName
     * @param dateStart
     * @param dateEnd
     * @return
     */
    public Optional<PageInfo<GWLogVO>> findAllLogs(String logLevel, String queryOperateName, String dateStart, String dateEnd, String queryKeyword, int curPage,int pageSize);

    /**
     * 查询监控相关日志
     * @return
     */
    public Optional<List<GWLogVO>> findMonitorLogs(int logCount);

    /**
     * 定时器job调用，定期删除指定时间段之前的日志
     */
    public void deleteLog();
}
